package com.example.syl.basaimovie.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by syl on 2017/1/6.
 */
public class OpenHelp extends SQLiteOpenHelper{
    public OpenHelp(Context context, String name) {
        super(context, name, null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table if not exists welcome(_id integer primary key,notes integer)");
        db.execSQL("insert into welcome(notes) values ('0')");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    }
}
